package com.smalls.newvideotwo.view;

import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.view.ViewDebug.ExportedProperty;
import android.widget.TextView;

@SuppressLint("AppCompatCustomView")
public class AutoFocusedTextView extends TextView {
    public AutoFocusedTextView(Context context) {
        super(context);
    }

    public AutoFocusedTextView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    public AutoFocusedTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @ExportedProperty(category = "focus")
    public boolean isFocused() {
        return true;
    }

    protected void onFocusChanged(boolean focused, int direction, Rect previouslyFocusedRect) {
        super.onFocusChanged(focused,direction,previouslyFocusedRect);
    }

    public void onWindowFocusChanged(boolean hasWindowFocus) {
        super.onWindowFocusChanged(hasWindowFocus);
    }
}
